package model

import (
	"time"
)

//gorm.Model

type Storehouse struct {
	Storehouse_id         string  `gorm:varchar(32)`
	Storehouse_piece      int     `gorm:integer`
	Storehouse_ton        float32 `gorm:float8`
	Storehouse_order_id   string  `gorm varchar(32)`
	Storehouse_company_id string  `gorm varchar(32)`
}

type Company struct {
	Company_id   string `gorm:varchar(32)`
	Company_name string `gorm:varchar(32)`
}

type Enter struct {
	Enter_id            int       `gorm:serial`
	Enter_storehouse_id string    `gorm:varchar(32)`
	Enter_date          time.Time `gorm:date`
	Enter_car           string    `gorm:varchar(32)`
	Enter_piece         int       `gorm:integer`
	Enter_ton           float32   `gorm:float8`
}

type Export struct {
	Export_id            int       `gorm:serial`
	Export_storehouse_id string    `gorm:varchar(32)`
	Export_date          time.Time `gorm:date`
	Export_piece         int       `gorm:integer`
	Export_ton           float32   `gorm:float8`
	Export_fee           float32   `gorm:float8`
	Export_waybill       string    `gorm:varchar(32)`
	Export_business      string    `gorm:varchar(32)`
}

type User struct {
	User_id       string `gorm:varchar(32)`
	User_password string `gorm:varchar(32)`
}
